import React, { Component, PropTypes } from 'react';
import { ContextMenuLayer } from 'react-contextmenu';


/**
 * API Mock 服务状态栏
 * @class {APIMockStatusBar}
 * @extends {React.Component}
 */
@ContextMenuLayer('api-mock-state-context-menu')
export default class APIMockStatusBar extends Component {
    static propTypes = {
        /**
         * 状态文字
         * @type {string}
         */
        text: PropTypes.string,

        /**
         * 图标样式
         * @type {string}
         */
        iconClass: PropTypes.string
    };

    render() {
        const { text, iconClass } = this.props;

        return (
            <div>
                <i className={iconClass}></i>
            </div>
        );
    }
}